home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 …SCII & the Runetime Code / ADC Developer CD (1992-07) (''Butch ASCII And The Runtime Code'')_iso / Dev.CD 199207.iso / Development Platforms / Apple II / HyperCardIIGS / Sample.XCMDs / XWindow Shell / XWindShell (Pascal) / makefile next >
Encoding:
Makefile  |  1992-02-05  |  2.1 KB  |  79 lines  |  [TEXT/MPS ]

  1. #---------------------------------------------------------------------
  2. #
  3. #  MakeFile for XWindShell XCMD
  4. #  
  5. #  Copyright © 1989-92 Apple Computer, Inc.
  6. #
  7. #
  8. #  This makefile depends on a .r file called XWindShell.r to act
  9. #  as a source for the resource compiler.
  10. #
  11. #  The files included with the XWindShell XCMD are meant to be
  12. #  used as a starting point for XCMDs in C or Pascal that wish to
  13. #  create and manage XWindows.
  14. #
  15. #  Files:
  16. #  ------
  17. #    XWindShell.p
  18. #    XWindShell.r
  19. #   *MakeFile
  20. #    
  21. #    
  22. #  Authors:    Andy Stadler/Darin Acquistapace
  23. #  Created:    04/11/89
  24. #  Modified:    See Mod History Below
  25. #
  26. #  Modification History:
  27. #  ---------------------
  28. #    04/11/89 - New today.
  29. #    12/05/91 - Revised slightly.  Updated header info.
  30. #    
  31. #------------------------------------------------------------------
  32.  
  33.  
  34. #------------------------------------------------------------------
  35. #  Defaults
  36. #------------------------------------------------------------------
  37.  
  38. TargetXCMD    =     XWindShell
  39. TargetObjs    =     XWindShell.p.obj
  40. AOptions    =    
  41. POptions    =    -r -saddr -noload -i ::Interfaces:PIIGSIncludes:
  42. LOptions    =    -x
  43. ROptions    =    -i "{MPW}Interfaces:RIIGSIncludes"
  44.  
  45. .a.obj ƒ .a
  46.     asmiigs {AOptions} {default}.a -o {default}.a.obj
  47.  
  48.  
  49. .p.obj ƒ .p
  50.     pascaliigs {POptions} {default}.p -o {default}.p.obj
  51.  
  52.  
  53. #------------------------------------------------------------------
  54. #  The pascal compiler will output 3 segments:  main, containing 
  55. #  code; and ~globals and ~arrays containing data.  This line 
  56. #  ensures that everything gets put back into the main segment.
  57. #------------------------------------------------------------------
  58.  
  59. SegsToMain    =    -lseg main                ∂
  60.             {TargetObjs}                ∂
  61.             "{PIIGSLibraries}"PLib
  62.  
  63.  
  64. #------------------------------------------------------------------
  65. #  Main build rules
  66. #------------------------------------------------------------------
  67.  
  68. {TargetXCmd}    ƒ    {TargetXCmd}.omf    {TargetXCmd}.r
  69.     reziigs {TargetXCmd}.r {ROptions} -o {targetXCmd}.rsrc
  70.     duplicateiigs -y -m {targetXCmd}.rsrc :
  71.  
  72. {TargetXCmd}.omf    ƒ    {TargetObjs}
  73.     flush
  74.     linkiigs {TargetObjs}            ∂
  75.          {LOptions}            ∂
  76.          {SegsToMain}            ∂
  77.          -lib "{PIIGSLibraries}"PLib    ∂
  78.          -o {TargetXCmd}.omf
  79.